package User;

import IOPeration.*;

import java.util.Scanner;

public class Admir extends User {
    public Admir(String name) {
        super(name);
        this.ioperations = new Ioperation[]{ new Exitsystem(),new Findbook(), new Addbook(), new Deletebook(), new Showbook()};

    }
    public int menu(){
        System.out.println("欢迎"+this.getName()+"来到图书管理系统");
        System.out.println("*********管理员菜单******************");
        System.out.println("*********查找图书********************");
        System.out.println("*********添加图书********************");
        System.out.println("*********删除图书********************");
        System.out.println("*********显示图书********************");
        System.out.println("*********退出系统********************");
        System.out.println("请输入你的操作");
        Scanner scanner=new Scanner(System.in);
        int choice= scanner.nextInt();
        return choice;
    }
}
